package com.fuqi.android.junit;

import android.util.Log;

import com.android.volley.Response;
import com.android.volley.error.VolleyError;
import com.fuqi.android.zhongcai.sql.User;

import junit.framework.TestCase;
import junit.framework.TestResult;


/**
 * Created by admin on 2015/7/30.
 */
public class TestTemp extends TestCase {
    /**
     * You can config like this if need Context
     * testCompile "org.mockito:mockito-core:1.9.5"
     * new MockContext()
     */


    public void setUp() throws Exception {
        super.setUp();
    }

    public void testApi() {
//        RequestManager.getInstance().call(new LoginApi(new LoginApi.LoginParams("juneor", "123456"), respListener, errorListener));
    }


    public void tearDown() throws Exception {

    }

    @Override
    public TestResult run() {
        testApi();
        return super.run();
    }

    Response.Listener<User> respListener = new Response.Listener<User>() {

        @Override
        public void onResponse(User response) {


        }
    };


    Response.ErrorListener errorListener = new Response.ErrorListener() {

        @Override
        public void onErrorResponse(VolleyError error) {
            Log.i("juner", "juner  error.getMessage(): " + error.getMessage());
        }
    };

}
